/summon villager ~ ~2 ~ {VillagerData:{profession:librarian,level:5,type:plains},Offers:{Recipes:[
{buy:{id:wheat,Count:40}
,buyB:{id:wheat_seeds,Count:40}
,sell:{id:music_disc_cat,Count:1,tag:
{display:{Name:"{\"text\":\"Seed Talisman Level 1\",\"color\":\"green\"}"},AttributeModifiers:
[{AttributeName:"generic.maxHealth",Name:"generic.maxHealth",Amount:1,Operation:0,UUIDLeast:1,UUIDMost:1,Slot:"offhand"},
{AttributeName:"generic.movementSpeed",Name:"generic.movementSpeed",Amount:0.05,Operation:1,UUIDLeast:1,UUIDMost:1,Slot:"offhand"}]},maxUses:9999999}},

{buy:{id:music_disc_cat,Count:1,tag:
{display:{Name:"{\"text\":\"Seed Talisman Level 1\",\"color\":\"green\"}"},AttributeModifiers:
[{AttributeName:"generic.maxHealth",Name:"generic.maxHealth",Amount:1,Operation:0,UUIDLeast:1,UUIDMost:1,Slot:"offhand"},
{AttributeName:"generic.movementSpeed",Name:"generic.movementSpeed",Amount:0.05,Operation:1,UUIDLeast:1,UUIDMost:1,Slot:"offhand"}]}}
,buyB:{id:wheat_seeds,Count:3,tag:
{display:{Name:"{\"text\":\"Seed Upgrade\",\"color\":\"green\"}"}}}
,sell:{id:music_disc_cat,Count:1,tag:
{display:{Name:"{\"text\":\"Seed Talisman Level 2\",\"color\":\"green\"}"},AttributeModifiers:
[{AttributeName:"generic.maxHealth",Name:"generic.maxHealth",Amount:3,Operation:0,UUIDLeast:1,UUIDMost:1,Slot:"offhand"},
{AttributeName:"generic.movementSpeed",Name:"generic.movementSpeed",Amount:0.08,Operation:1,UUIDLeast:1,UUIDMost:1,Slot:"offhand"}]}},maxUses:9999999},

{buy:{id:music_disc_cat,Count:1,tag:
{display:{Name:"{\"text\":\"Seed Talisman Level 2\",\"color\":\"green\"}"},AttributeModifiers:
[{AttributeName:"generic.maxHealth",Name:"generic.maxHealth",Amount:3,Operation:0,UUIDLeast:1,UUIDMost:1,Slot:"offhand"},
{AttributeName:"generic.movementSpeed",Name:"generic.movementSpeed",Amount:0.08,Operation:1,UUIDLeast:1,UUIDMost:1,Slot:"offhand"}]}}
,buyB:{id:wheat_seeds,Count:6,tag:
{display:{Name:"{\"text\":\"Seed Upgrade\",\"color\":\"green\"}"}}}
,sell:{id:music_disc_cat,Count:1,tag:
{display:{Name:"{\"text\":\"Seed Talisman Level 3\",\"color\":\"green\"}"},AttributeModifiers:
[{AttributeName:"generic.maxHealth",Name:"generic.maxHealth",Amount:5,Operation:0,UUIDLeast:1,UUIDMost:1,Slot:"offhand"},
{AttributeName:"generic.movementSpeed",Name:"generic.movementSpeed",Amount:0.12,Operation:1,UUIDLeast:1,UUIDMost:1,Slot:"offhand"}]}},maxUses:9999999},

{buy:{id:music_disc_cat,Count:1,tag:
{display:{Name:"{\"text\":\"Seed Talisman Level 3\",\"color\":\"green\"}"},AttributeModifiers:
[{AttributeName:"generic.maxHealth",Name:"generic.maxHealth",Amount:5,Operation:0,UUIDLeast:1,UUIDMost:1,Slot:"offhand"},
{AttributeName:"generic.movementSpeed",Name:"generic.movementSpeed",Amount:0.12,Operation:1,UUIDLeast:1,UUIDMost:1,Slot:"offhand"}]}}
,buyB:{id:wheat_seeds,Count:12,tag:
{display:{Name:"{\"text\":\"Seed Upgrade\",\"color\":\"green\"}"}}}
,sell:{id:music_disc_cat,Count:1,tag:
{display:{Name:"{\"text\":\"Seed Talisman Level 4\",\"color\":\"green\"}"},AttributeModifiers:
[{AttributeName:"generic.maxHealth",Name:"generic.maxHealth",Amount:7,Operation:0,UUIDLeast:1,UUIDMost:1,Slot:"offhand"},
{AttributeName:"generic.movementSpeed",Name:"generic.movementSpeed",Amount:0.16,Operation:1,UUIDLeast:1,UUIDMost:1,Slot:"offhand"}]}},maxUses:9999999},

{buy:{id:music_disc_cat,Count:1,tag:
{display:{Name:"{\"text\":\"Seed Talisman Level 4\",\"color\":\"green\"}"},AttributeModifiers:
[{AttributeName:"generic.maxHealth",Name:"generic.maxHealth",Amount:7,Operation:0,UUIDLeast:1,UUIDMost:1,Slot:"offhand"},
{AttributeName:"generic.movementSpeed",Name:"generic.movementSpeed",Amount:0.16,Operation:1,UUIDLeast:1,UUIDMost:1,Slot:"offhand"}]}}
,buyB:{id:wheat_seeds,Count:18,tag:
{display:{Name:"{\"text\":\"Seed Upgrade\",\"color\":\"green\"}"}}}
,sell:{id:music_disc_cat,Count:1,tag:
{display:{Name:"{\"text\":\"Seed Talisman Level 5\",\"color\":\"green\"}"},AttributeModifiers:
[{AttributeName:"generic.maxHealth",Name:"generic.maxHealth",Amount:10,Operation:0,UUIDLeast:1,UUIDMost:1,Slot:"offhand"},
{AttributeName:"generic.movementSpeed",Name:"generic.movementSpeed",Amount:0.22,Operation:1,UUIDLeast:1,UUIDMost:1,Slot:"offhand"}]}},maxUses:9999999}]}}